#ifndef TransportImpl_H
#define TransportImpl_H

#include "jni_api.h"
#include "voe_network.h"

class TransportImpl : public webrtc::Transport, public JniCallbackGlobal
{
public:
	TransportImpl(void);
	~TransportImpl(void);

protected:	//JniCallbackBase
	virtual bool init_jni(JNIEnv* env);

public:		//webrtc::Transport
	virtual int SendPacket(int channel, const void *data, int len);
	virtual int SendRTCPPacket(int channel, const void *data, int len);

protected:
	jmethodID m_mid_SendPacket;
	jmethodID m_mid_SendRTCPPacket;
};

#endif //!TransportImpl_H
